home *** CD-ROM | disk | FTP | other *** search
/ Resource for Source: C/C++ / Resource for Source - C-C++.iso / misc_src / vlib205 / vlibdemo.h < prev    next >
Text File  |  1995-11-01  |  9KB  |  279 lines

  1. #define    VL_LOGO    10000
  2. #define    IDI_LOGO            100
  3. #define    IDM_HELP_ABOUT        101
  4. #define    IDM_HELP_LICENSE    109
  5. #define    IDM_HELP_VISUALIB    102
  6. #define    IDM_HELP_DEMOPROG    103
  7. #define    IDM_DEMO_EXIT        104
  8. #define    IDM_DEMO_SAVEPICTURE    105
  9. #define    IDM_DEMO_PRINTPICTURE    106
  10. #define    IDM_DEMO_START        107
  11. #define    IDM_DEMO_WITHFRAME    108
  12.  
  13. #define    IDM_SHADE_WIREFRAME    201
  14. #define    IDM_SHADE_SOLIDFILL    202
  15. #define    IDM_SHADE_FLATSHADE    203
  16. #define    IDM_SHADE_GOURAUD    204
  17. #define    IDM_SHADE_PHONG        205
  18. #define    IDM_SHADE_SPECULAR    206
  19.  
  20. #define    IDM_SELECT_L1        235
  21. #define    IDM_SELECT_L2        236
  22. #define    IDM_SELECT_L3        237
  23. #define    IDM_SELECT_L4        238
  24. #define    IDM_LIGHT_ON        239
  25. #define    IDM_LIGHT_OFF        240
  26. #define    IDM_LIGHT_INQUIRE    241
  27. #define    IDM_LIGHT_COLOR        256
  28. #define    IDM_LIGHT_AMBIENT    257
  29. #define    IDM_GLOBAL_AMBIENT    258
  30. #define    IDM_LIGHT_POSITION    259
  31. #define    IDM_LIGHT_DIRECTION    260
  32.  
  33. #define    IDM_SELECT_M1        261
  34. #define    IDM_SELECT_M2        262
  35. #define    IDM_SELECT_M3        263
  36. #define    IDM_SELECT_M4        264
  37. #define    IDM_MATERIAL_DIFFUSE    265
  38. #define    IDM_MATERIAL_AMBIENT    266
  39. #define    IDM_MATERIAL_SPECULAR    267
  40. #define    IDM_MATERIAL_EMISSION    268
  41. #define    IDM_OPTION_BACKCOLOR    269
  42. #define    IDM_OPTION_SHADEMODE    270
  43. #define    IDM_OPTION_TEXTURE        271
  44. #define    IDM_OPTION_REDRAW        272
  45. #define    IDM_OPTION_PREVIEW        273
  46.  
  47. #define    IDM_2DPRIMIT_START        1100
  48. #define    IDM_2DSHAPE_BOX            1101
  49. #define    IDM_2DSHAPE_DISK        1102
  50. #define    IDM_2DSHAPE_NGON        1103
  51. #define    IDM_2DSHAPE_STAR        1104
  52. #define    IDM_2DSHAPE_FLOWER        1105
  53. #define    IDM_2DSHAPE_CHORD        1106
  54. #define    IDM_2DSHAPE_PIE            1107
  55. #define    IDM_2DSHAPE_RING        1108
  56. #define    IDM_2DSHAPE_ROSE        1109
  57.  
  58. #define    IDM_2DCURVE_BEZIER        1110
  59. #define    IDM_2DCURVE_HERMIT        1111
  60. #define    IDM_2DCURVE_BSPLINE        1112
  61. #define    IDM_2DCURVE_NURBSKNOTS    1113
  62. #define    IDM_2DCURVE_NURBS        1114
  63. #define    IDM_2DCURVE_CATMULLROM    1115
  64. #define    IDM_2DCURVE_QBEZIER        1116
  65. #define    IDM_2DCURVE_QBSPLINE    1117
  66. #define    IDM_2DCURVE_QNURBS        1118
  67. #define    IDM_2DPRIMIT_END        1119
  68.  
  69. #define    IDM_3DPRIMIT_START        1200
  70. #define    IDM_3DSHAPE_BOX            1201
  71. #define    IDM_3DSHAPE_DISK        1202
  72. #define    IDM_3DSHAPE_NGON        1203
  73. #define    IDM_3DSHAPE_STAR        1204
  74. #define    IDM_3DSHAPE_FLOWER        1205
  75. #define    IDM_3DSHAPE_CHORD        1206
  76. #define    IDM_3DSHAPE_PIE            1207
  77. #define    IDM_3DSHAPE_RING        1208
  78. #define    IDM_3DSHAPE_ROSE        1209
  79.  
  80. #define    IDM_3DCURVE_CATMULLROM    1210
  81. #define    IDM_3DCURVE_BEZIER        1211
  82. #define    IDM_3DCURVE_HERMIT        1212
  83. #define    IDM_3DCURVE_BSPLINE        1213
  84. #define    IDM_3DCURVE_NURBS        1214
  85. #define    IDM_3DCURVE_NURBSKNOTS    1218
  86. #define    IDM_3DCURVE_QBEZIER        1215
  87. #define    IDM_3DCURVE_QBSPLINE    1216
  88. #define    IDM_3DCURVE_QNURBS        1217
  89. #define    IDM_3DPRIMIT_END        1219
  90.  
  91. #define    IDM_2DPRIME_START        1320
  92. #define    IDM_2DPRIME_LINE        1321
  93. #define    IDM_2DPRIME_POLYLINE    1322
  94. #define    IDM_2DPRIME_POINTER        1323
  95. #define    IDM_2DPRIME_MARK        1324
  96. #define    IDM_2DPRIME_LABEL        1325
  97. #define    IDM_2DPRIME_ARROW        1326
  98. #define    IDM_2DPRIME_NET            1327
  99. #define    IDM_2DPRIME_SPIRAL        1328
  100. #define    IDM_2DPRIME_END            1330
  101.  
  102. #define    IDM_3DPRIME_START        1330
  103. #define    IDM_3DPRIME_LINE        1331
  104. #define    IDM_3DPRIME_POLYLINE    1332
  105. #define    IDM_3DPRIME_POINTER        1333
  106. #define    IDM_3DPRIME_MARK        1334
  107. #define    IDM_3DPRIME_LABEL        1335
  108. #define    IDM_3DPRIME_ARROW        1336
  109. #define    IDM_3DPRIME_NET            1337
  110. #define    IDM_3DPRIME_SPRING        1338
  111. #define    IDM_3DPRIME_SPIRAL        1339
  112. #define    IDM_3DPRIME_END            1340
  113.  
  114. #define    IDM_2DSHAPE_CYCLOID        321
  115. #define    IDM_2DSHAPE_EPICYCLOID    322
  116. #define    IDM_2DSHAPE_CARDIOID    323
  117. #define    IDM_2DSHAPE_HYPOCYCLOID    324
  118. #define    IDM_2DSHAPE_CATMULLROM    326
  119.  
  120. #define    IDM_SOLID_START                350
  121. #define    IDM_SOLID_TORUS                351
  122. #define    IDM_SOLID_SPHERE            352
  123. #define    IDM_SOLID_CYLINDER            353
  124. #define    IDM_SOLID_CONE                354
  125. #define    IDM_SOLID_BOX                355
  126. #define    IDM_SOLID_TETRAHEDRON        356
  127. #define    IDM_SOLID_OCTAHEDRON        357
  128. #define    IDM_SOLID_DODECAHEDRON        358
  129. #define    IDM_SOLID_ICOSAHEDRON        359
  130. #define    IDM_SOLID_FRUSTUM            360
  131. #define    IDM_SOLID_RIDGE                361
  132. #define IDM_SOLID_STAR                362
  133. #define    IDM_SOLID_FLOWER            363
  134. #define    IDM_SOLID_ELLIPSOID            364
  135. #define    IDM_SOLID_TUBE                365
  136. #define    IDM_SOLID_END                367
  137.  
  138. #define    IDM_SURFACE_START            370
  139. #define    IDM_SURFACE_NURBS            370
  140. #define IDM_SURFACE_BEZIER            371
  141. #define IDM_SURFACE_BSPLINE            372
  142. #define    IDM_SURFACE_HERMIT            373
  143. #define    IDM_SURFACE_COONSPATCH        374
  144. #define    IDM_SURFACE_END                375
  145.  
  146. #define    IDM_TEXT_START                400
  147. #define    IDM_TEXT_SELECTFONT            401
  148. #define    IDM_TEXT_SOLID                402
  149. #define    IDM_TEXT_3D                    403
  150. #define    IDM_TEXT_2D                    404
  151. #define    IDM_TEXT_3DV                405
  152. #define    IDM_TEXT_2DV                406
  153. #define    IDM_TEXT_SOLIDV                407
  154. #define    IDM_TEXT_END                408
  155.  
  156. #define    IDM_TEST_4BALLS                901
  157. #define IDM_TEST_ZBUFFER_PHONG        902
  158. #define IDM_TEST_IMAGE_MAPPING        903
  159.  
  160. #define    IDM_2DTRANSF_BEGIN            910
  161. #define IDM_2DTRANSF_TRANSLATE        911
  162. #define    IDM_2DTRANSF_SCALE            912
  163. #define    IDM_2DTRANSF_POINTSCALE        913
  164. #define    IDM_2DTRANSF_ROTATE            914
  165. #define    IDM_2DTRANSF_POINTROTATE    915
  166. #define    IDM_2DTRANSF_STRETCH        916
  167. #define    IDM_2DTRANSF_SHEAR            917
  168. #define    IDM_2DTRANSF_MIRROR            918
  169. #define    IDM_2DTRANSF_END            919
  170.  
  171. #define IDM_3DTRANSF_BEGIN            920
  172. #define IDM_3DTRANSF_TRANSLATE        921
  173. #define    IDM_3DTRANSF_SCALE            922
  174. #define    IDM_3DTRANSF_POINTSCALE        923
  175. #define    IDM_3DTRANSF_ROTATE            924
  176. #define    IDM_3DTRANSF_AXLEROTATE        925
  177. #define    IDM_3DTRANSF_STRETCH        926
  178. #define    IDM_3DTRANSF_SHEAR            927
  179. #define    IDM_3DTRANSF_MIRROR            928
  180. #define    IDM_3DTRANSF_END            930
  181.  
  182. #define    IDM_3DARRAY_BEGIN            1300
  183. #define    IDM_3DARRAY_RECTANGLE        1301
  184. #define    IDM_3DARRAY_CUBIC            1303
  185. #define    IDM_3DARRAY_POLAR            1304
  186. #define    IDM_3DARRAY_CYLINDRIC        1305
  187. #define    IDM_3DARRAY_SPHERIC            1306
  188. #define    IDM_3DARRAY_END                1309
  189.  
  190. #define    IDM_2DARRAY_BEGIN            1310
  191. #define    IDM_2DARRAY_RECTANGLE        1311
  192. #define    IDM_2DARRAY_POLAR            1312
  193. #define    IDM_2DARRAY_END                1319
  194.  
  195. #define    IDM_ANIMATE_START            1400
  196. #define    IDM_ANIMATE_OBJECT2D        1401
  197. #define    IDM_ANIMATE_VIEWER3D        1402
  198. #define    IDM_ANIMATE_STAR3D            1403
  199. #define    IDM_ANIMATE_SURFACE            1404
  200. #define    IDM_ANIMATE_ICOSAHEDRON        1405
  201. #define    IDM_ANIMATE_DODECAHEDRON    1406
  202. #define    IDM_ANIMATE_OBJECT3D        1407
  203. #define    IDM_ANIMATE_ZOOM3D            1408
  204. #define    IDM_ANIMATE_FRAME            1409
  205. #define    IDM_ANIMATE_END                1410
  206.  
  207. //#define    IDM_DEMO_START                1000
  208. #define    IDM_DEMO_IMAGEMAPPING        1000
  209. #define    IDM_DEMO_BUMPYDONUT            1001
  210. #define    IDM_DEMO_DEPTHCLIPPING        1002
  211. #define    IDM_DEMO_MARBLERING            1003
  212. #define    IDM_DEMO_WOODSURFACE        1004
  213. #define    IDM_DEMO_GRANITECUBE        1005
  214. #define    IDM_DEMO_MATERIALPROPERTY    1006
  215. #define    IDM_DEMO_3DCOMPOSITE        1007
  216. #define    IDM_DEMO_STEREOTEXT            1008
  217. #define    IDM_DEMO_2DCOMPOSITE        1009
  218. #define    IDM_DEMO_PRINTFLAG            1010
  219. #define    IDM_DEMO_PRINTSHADING        1011
  220. #define    IDM_DEMO_SPOTLIGHT            1012
  221. #define    IDM_DEMO_NURBSCURVE            1013
  222. #define    IDM_DEMO_POLYFACET            1014
  223. #define    IDM_DEMO_END                1015
  224.  
  225. #define XCOORD                      101
  226. #define YCOORD                      102
  227. #define ZCOORD                      103
  228.  
  229. #define LIGHTLOCX                      201
  230. #define LIGHTLOCY                      202
  231. #define LIGHTLOCZ                      203
  232.  
  233. #define LIGHTDIRX                      211
  234. #define LIGHTDIRY                      212
  235. #define LIGHTDIRZ                      213
  236.  
  237. #define LIGHTON                           220
  238.  
  239. #define LIGHTCOLOR                       250
  240.  
  241. #define TEXTURENONE                 311
  242. #define TEXTUREMARBLE               312
  243. #define TEXTUREWOOD                 313
  244. #define TEXTUREGRANITE              314
  245. #define MATDIFFUSE                  321
  246. #define MATAMBIENT                  322
  247. #define MATSPECULAR                 323
  248. #define MATEMISSION                 324
  249. #define WIREFRAME                   411
  250. #define SOLIDFILL                   412
  251. #define FLATSHADING                 413
  252. #define GOURAUD                     414
  253. #define PHONG                       415
  254. #define SPECULAR                    416
  255. #define DEPTHBUFFER                 421
  256. #define LOCALVIEWER                 422
  257. #define TWOSIDE                     423
  258. #define BACKFACEREM                 424
  259.  
  260. #define IDC_CHECK1                      11000
  261. #define IDC_CHECK2                      11001
  262. #define IDC_CHECK3                      11002
  263. #define IDC_CHECK4                      11003
  264. #define IDC_STATIC                      -1
  265.  
  266. #define    ID_ABOUT    100
  267. #define    DLGSETPOINT2D    1
  268. #define    DLGSETPOINT3D    2
  269. #define    DLGLIGHTSETUP    3
  270. #define    DLGMATERIAL        4
  271. #define    DLGSHADING        5
  272. #define    DLGTEXTURE        6
  273.  
  274. int PASCAL WinMain (HINSTANCE, HINSTANCE, LPSTR, int);
  275. BOOL InitApplication (HINSTANCE);
  276. BOOL InitInstance (HINSTANCE, int);
  277. long FAR PASCAL MainWndProc (HWND, UINT, WPARAM, LPARAM);
  278. BOOL FAR PASCAL About (HWND, WORD, WORD, LONG);
  279.